package fun.cyhgraph.service;

import com.baomidou.mybatisplus.extension.service.IService;
import fun.cyhgraph.model.dto.CategoryDTO;
import fun.cyhgraph.model.dto.CategoryTypePageDTO;
import fun.cyhgraph.model.entity.Category;
import fun.cyhgraph.model.entity.User;
import fun.cyhgraph.result.PageResult;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

public interface CategoryService extends IService<Category> {
    void addCategory(CategoryDTO categoryDTO , Integer merchantId);

    PageResult getPageList(CategoryTypePageDTO categoryTypePageDTO , HttpServletRequest request);

    List<Category> getList(Integer type);

    Category getById(Integer id);
    void onOff(Integer id , Integer merchantId);

    void udpate(CategoryDTO categoryDTO);

    void delete(Integer id);

    boolean deleteCategory(Integer id, Integer merchantId);
}
